package com.situ.springboot.controller;

import com.situ.springboot.annotation.MyLog;
import com.situ.springboot.pojo.Auth;
import com.situ.springboot.pojo.query.AuthQuery;
import com.situ.springboot.service.IAuthService;
import com.situ.springboot.util.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/auth")
public class AuthController {

    @Autowired
    private IAuthService authService;

    @MyLog
    @RequestMapping("/selectByPage")
    public PageResult<Auth> selectByPage(AuthQuery authQuery) {
        return authService.selectByPage(authQuery);
    }
}
